import request from '@/utils/request'


// 展示所有年份数据到前端
export function yearCount(data) {
  return request({
    url: '/paper/paperEcharts/getOption',
    method: 'get',
    data: data
  })
}
// 展示某一年份的数据到前端
export function yearCountById(year) {
  return request({
    url: '/paper/paperEcharts/getOptionById',
    method: 'get',
    params: year,

  })
}
// 展示期刊的可视化
export function wordCloudData(data) {
  return request({
    url: '/paper/paperEcharts/wordCloudData',
    method: 'get',
    data: data
  })
}
// 展示DOI的柱状图可视化
export function DoiData(data) {
  return request({
    url: '/paper/paperEcharts/DoiData',
    method: 'get',
    data: data
  })
}
